package com.goldcn.sys.dao;


import com.goldcn.sys.model.SysConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysConfigMapper {
    int deleteByPrimaryKey(Long companyInfoID);

    int insert(SysConfig record);

    int insertSelective(SysConfig record);

    SysConfig selectByPrimaryKey(Long companyInfoID);

    int updateByPrimaryKeySelective(SysConfig record);

    int updateByPrimaryKey(SysConfig record);

    int selectAllNum(@Param(value = "condition") String condition);

    List<Map<String,Object>> selectAllConfig(@Param(value = "startRow") int startRow,
                                             @Param(value = "limitRow") int limitRow,
                                             @Param(value = "condition") String condition,
                                             @Param(value = "sortField") String sortField,
                                             @Param(value = "sortOrder") String sortOrder);

    Map<String,Object> getMapByPrimaryKey(@Param(value = "companyInfoID") Long companyInfoID);

    Map<String,Object> selectName(Long companyID);

    List<SysConfig> selectAllConfig_notPage(@Param(value = "condition") String condition);

    int checkCompanyAccountCode(@Param(value = "companyInfoID") Long companyInfoID, @Param(value = "companyAccountCode") String companyAccountCode);
}